<?
require_once('config.php');
$action = getValue('action','str','POST');
if($action == 'submit'){
   $per_name = getValue('per_name','str','POST');
   $db_exe = new db_execute( "INSERT INTO person(
                                 per_name
                              )
                              VALUES(
                                 '" . $per_name . "'
                              )");
   echo '<span style="color: #01B42C;font-size: 14px;font-weight: bold;">Thêm thành công</span>';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thêm mới <?=$moduol_name?></title>
   <?=$css_global?>
   <?=$js_global?>
  <script>
  $(function() {
    $( "#datepicker" ).datepicker();
    $(document).on('click','.reload_tab' ,function(){
      window.location.reload();
    });
  });
  </script>
</head>
<div class="row-fluid">
   <div class="head">
      <div class="isw-grid"></div>
      <h1>Thêm mới <?=$moduol_name?></h1>      
      <div class="reload_tab" title="Reload"></div>                         
      <div class="clear"></div>
   </div>
   <div class="block-fluid">
      <form class="form-horizontal" name="add" action="" method="POST" enctype="multipart/form-data"  onsubmit="">
         <input type="hidden" name="action" value="submit" />
         <fieldset>
            <div class="control-group">
               <label class="control-label" for="input01">Tên ca sĩ, diễn viên</label>
               <div class="controls">
						<input type="text" class="input-xlarge tooltip-right span3" onfocus="perNameFocus(this)" id="per_name" name="per_name" title="Tên ca sĩ, diễn viên"/>
					   <span class="btn btn-info" id="add" onclick="quickAddPerson(this)">Thêm nhanh</span> 
               </div>
            </div>
            <div class="form-actions">
					<button type="submit" class="btn btn-info">Thêm mới</button>
					<button type="reset"  class="btn btn-warning">Làm lại</button>
				</div>
         </fieldset>
      </form>
   </div> 
</div>
<script>
   
</script>